import React from 'react'
import { createRoot } from 'react-dom/client'

// 引入store
import store from './redux/store'

// 引入Provider
import { Provider } from 'react-redux'

import App from './App'
import reportWebVitals from './reportWebVitals'
// 引入国际化配置代码
import './locales/i18n'
import 'antd/dist/antd.css'
const root = createRoot(document.getElementById('root') as HTMLElement)

root.render(
  <Provider store={store}>
    <App />
  </Provider>
)

// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals()
// reportWebVitals(console.log); // 会将生成的性能报告打印出来
